<template>
  <div class="home w-screen h-full">
    <el-container class="w-screen h-full">
      <el-aside width="200px">
        <ul class="linkto">
          <li><router-link to="/">发现音乐</router-link></li>
          <li><router-link to="#1">视频</router-link></li>
          <li><router-link to="#2">朋友</router-link></li>
          <li><router-link to="#3">直播</router-link></li>
          <li><router-link to="#4">私人FM</router-link></li>
        </ul>
        <p>我的音乐</p>
        <ul>
          <li>
            <router-link to="#5">
              <i class="iconfont">&#xe612;</i>本地音乐
            </router-link>
          </li>
          <li>
            <router-link to="#6">
              <i class="iconfont">&#xe61a;</i>下载管理
            </router-link>
          </li>
        </ul>
        <div class="createmusic">
          <!-- <p @click="qaq">创建的歌单<i class="el-icon-caret-right"></i></p> -->

          <el-collapse accordion>
            <el-collapse-item>
              <template slot="title">
                创建歌单 <i class="el-icon-plus" @click="clg"></i>
              </template>
              <ul>
                <li v-for="(item, index) in songList" :key="index">
                  <router-link to="#">{{ item }}</router-link>
                </li>
              </ul>
            </el-collapse-item>
          </el-collapse>
        </div>
      </el-aside>
      <router-view></router-view>
    </el-container>
  </div>
</template>

<script>
/* 

123123

123123 */
export default {
  name: "Home",
  data() {
    return {
      songList: ["最喜欢的歌"],
    };
  },
  methods: {
    clg() {
      alert("还在添加中");
    },
  },
  created() {
    console.log(this.$store.state.text,123);
  },
};
</script>
<style lang="scss" >
@import "../assets/css/common.css";
* {
  padding: 0;
  margin: 0;
}

.home {
  width: 100%;
  .el-carousel {
    max-width: 1040px;
    margin: 0 auto;
  }
  .el-aside {
    background: #fff;
    font-size: 14px;
    p {
      display: block;
      text-align: left;
      margin-left: 20px;
      padding: 10px 0;
      color: #999999;
    }
    .createmusic {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-right: 20px;

      .el-collapse-item__header {
        width: 160px;
        margin-left: 20px;
        color: #999;
      }
      .el-collapse-item__wrap {
        border: none;
      }
      .el-collapse {
        border: none;
      }
      .el-collapse-item__header {
        border: none;
      }
    }
    a {
      text-decoration: none;
      color: #000;
    }
    .linkto {
      a.router-link-exact-active {
        font-size: 20px;
        font-weight: 600;
      }
    }
    ul {
      width: 100%;
      display: flex;
      flex-direction: column;
      li {
        margin: 0 20px;
        border-radius: 5px;
        display: flex;
        justify-content: left;
        // padding: 10px 5px;
        cursor: pointer;

        a {
          display: block;
          width: 100%;
          height: 100%;
          text-align: left;
          padding: 10px 5px;
          transition: 0.3s;

          &:hover {
            background: #f6f6f7;
          }
          &.router-link-exact-active {
            background: #f6f6f7;
          }
        }
      }
    }
  }
}
</style>
